import java.io.File;
import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        String name;
        int a, b, c, sum;

        System.out.print("Getting name and three numbers from file...");
        Scanner fileIn = new Scanner(new File("name-and-numbers.txt"));
        name = fileIn.nextLine();
        a = fileIn.nextInt();
        b = fileIn.nextInt();
        c = fileIn.nextInt();

       System.out.println(name);
       System.out.println(a);
       System.out.println(b);
       System.out.println(c);
    }
}
